package com.yyx.app1.More_function.UI;

import android.app.Activity;
import android.view.KeyEvent;
import android.widget.ImageView;

import com.yyx.app1.MyApp;
import com.yyx.app1.R;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

/**
 * Created by yuexing on 2015/9/16.
 */
@EActivity(R.layout.activity_more)
public class More_Activity extends Activity{

    @ViewById
    ImageView top_menu_ico;

    @AfterViews
    public void init()
    {
        top_menu_ico.setImageBitmap(((MyApp)getApplication()).getBaseDataManager().getResDrawable(
                R.drawable.whitethreeline, top_menu_ico.getWidth(),top_menu_ico.getHeight()));
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK)
        {
            finish();
        }
        return true;
    }
}
